package com.example.clientsideapplication;

import java.util.ArrayList;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;


public class ViewClientOfferReceiver extends BroadcastReceiver {
	
	@Override
	public void onReceive(Context context, Intent intent) {
		ArrayList<Offer> array;
		
		array = (ArrayList<Offer>) intent.getSerializableExtra("offer");
		
		Intent viewIntent = new Intent(context, ViewClientOfferActivity.class);
		viewIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
		viewIntent.putExtra("offer", array);
		context.startActivity(viewIntent);
	}

}
